package Day06;

import java.util.Scanner;

public class Demo06 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
       /* System.out.println("请输入成绩:");
        double score=in.nextDouble();
        if(score>8.0){
            System.out.println("请输入学生性别:");
            String sex=in.next();
            if(sex.equals("男")){
                System.out.println("进入男子组");
            }else if(sex.equals("女")){
                System.out.println("进入女子组");
            }else{
                System.out.println("性别有误");
            }
        }else{
            System.out.println("未进决赛");

        }
    }*/
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入该歌手成绩:");
        double score = sc.nextDouble();
        if (score>8.0){
            System.out.println("请输入你的性别:");
            char gender = sc.next().charAt(0);
            if (gender=='男'){
                System.out.println("请进入男子组");
            }else if (gender=='女'){
                System.out.println("请进入女子组");
            }else {
                System.out.println("您的性别输入有无");
            }
        }else {
            System.out.println("您没有进入决赛！希望下次努力");
        }
    }

}
